package d0326;

import java.util.*;/*

public class TestHashMap {
    public static void main(String[] args) {
        Student s1 = new Student("肖战", 21, 98);
        Student s2 = new Student("邓紫棋", 15, 56);
        Student s3 = new Student("王一博", 21, 98);


      studentMap.put("xz",s1);
       studentMap.put("dzq",s2);
       studentMap.put("wyb"s3);
        System.out.println(studentMap.size());
        Student x1=studentMap.get("dzq");
        System.out.println(x1);
        Collection<Student> values=studentMap.values();
        for (Student stu:
        values){
            System.out.println(stu);
        }
        Set<Map.Entry<String,Student>>entys=StudentMap.entrySet();
        for (Map.Entry:
              entys){
            System.out.println(entys.getKey()+"------->"+entys.getValue());
        }
        Iterator<Student> iterator=set.iterator();
        while (iterator.hasNext()){
            Student student=iterator.next();
            studentMap.forEath((K,V)->
                    System.out.println(K+"------>"+V);
            );
        }

    }
}*/

